/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package stringhelper;

import java.util.ArrayList;

/**
 *
 * @author Welcome
 */
public class SelectStatement extends SQLStatement{
    
    public SelectStatement()
    {
        keyWords=new ArrayList<String>();
        keyWords.add("select");
        keyWords.add("from");
        keyWords.add("where");
        kindOfStatement = KindOfStatement.SELECT;
    }

    public SelectStatement(String strStatement) {
        this.strStatement = strStatement;
        keyWords=new ArrayList<String>();
        keyWords.add("select");
        keyWords.add("from");
        keyWords.add("where");      
        kindOfStatement = KindOfStatement.SELECT;
    }

    
    @Override
    public void getData() throws Exception{
        //throw new UnsupportedOperationException("Not supported yet.");
        tempField = CutSign(getContentAfter("select"));
        tempTable = CutSign(getContentAfter("from"));
       
    }
    
    
}
